//
//  AppDelegate.m
//  DQBaisibudejie
//
//  Created by 杜倩 on 16/8/29.
//  Copyright © 2016年 杜倩. All rights reserved.
//

#import "AppDelegate.h"
#import "DQtabBarController.h"
#import "DQAdViewController.h"
@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    self.window=[[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
    //广告的控制器
    DQAdViewController *ad=[[DQAdViewController alloc] init];
    //设置根控制器
    self.window.rootViewController=ad;
    
    //成为主窗口-并且显示出来
    [self.window makeKeyAndVisible];
    //[self.window makeKeyWindow];//-这种方法仅仅是让window成为主窗口
    return YES;
}

@end
